package com.mybatis_plus.demo.entity;

import com.baomidou.mybatisplus.annotation.*;

@TableName(value = "pt_area")
public class Area {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String type;

    private Long pid;

    @TableLogic
    @TableField(value = "isDel")
    private short isDel;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public short getIsDel() {
        return isDel;
    }

    public void setIsDel(short isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "Area{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", pid=" + pid +
                ", isDel=" + isDel +
                '}';
    }
}
